package com.bby.disk.manager.virtual;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class VirtualDirectory extends VirtualObject{
    List<String> files;// 文件夹中的文件的id
    public VirtualDirectory(){
    }
    public VirtualDirectory(String name,String maker){
        files = new ArrayList<>();
        createTime=new Date();
        lastModified=createTime;
        file = false;
        this.name=name;
        this.maker=maker;
    }
    public VirtualDirectory(String parent,String name,String maker){
        files = new ArrayList<>();
        createTime=new Date();
        lastModified=createTime;
        file = false;
        this.parent=parent;
    }
}
